<?php
/**
*市场总监
*/
require("./include/init.php");
//市场总监只是北区北京这一个公司的
//市场总监中的数据概况是从area表中进行查取获得的
$mysql=mysql::getIns();

$address=$_REQUEST['address'];

switch ($address) {
  case '北京博瑞祥星汽车销售有限公司':
    $hash='4S_MarketDirector_main_brxx';
    break;
  case '义乌市博奥汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_ywba';
    break;
  case '江苏天奥汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_jsta';
    break;
  case '广东粤奥汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_gdya';
    break;
  case '辽宁鑫迪汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_lnxd';
    break;
  case '成都新元素雅麓汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_cdyl';
    break;
  case '云南驰泰汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_ynct';
    break;
  case '宁夏奥立升汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_nxals';
    break;
  case '陕西奥诚汽车销售服务有限公司':
    $hash='4S_MarketDirector_main_sxac';
    break;
}
// echo $hash;
$redis = new Redis();
  //连接服务器
  $redis->connect("localhost");
  //授权
  $redis->auth("redis=pwd@2016");

$data=$redis->hmget($hash, array(
  'allnow',
  'allday',
  'firstlogin',
  'sale',
  'service',
  'secondlogin',
  'login',
  'nolog',
  'history',
  'p9',
  'p10',
  'p11',
  'p12',
  'p13',
  'p14',
  'p15',
  'p16',
  'p17',
  'p18',
  'b9',
  'b10',
  'b11',
  'b12',
  'b13',
  'b14',
  'b15',
  'b16',
  'b17',
  'b18',
  'onep',
  'twop',
  'threep',
  'fourp',
  'fivep',
  'sixp',
  'sevenp',
  'firstp',
  'secondp',
  'thirdp',
  'fourthp',
  'firstmonth',
  'secondmonth',
  'thirdmonth',
  'fourthmonth',
  'nowjk',
  'yesdjk',
  'onejk',
  'twojk',
  'threejk',
  'fourjk',
  'fivejk',
  'sixjk',
  'sevenjk',
  'firstjk',
  'secondjk',
  'thirdjk',
  'fourthjk',
  'firstmonth',
  'secondmonth',
  'thirdmonth',
  'fourthmonth',
  'daycountry',
  'week',
  'month',
  'years',
  'weekcountry',
  'monthcountry',
  'yearcountry',
));



$allnow=$data['allnow'];
$allday=$data['allday'];
$firstlogin=$data['firstlogin'];
$sale=$data['sale'];
$service=$data['service'];
$secondlogin=$data['secondlogin'];
$login=$data['login'];
$nolog=$data['nolog'];
$history=$data['history'];
$p9=$data['p9'];
$p10=$data['p10'];
$p11=$data['p11'];
$p12=$data['p12'];
$p13=$data['p13'];
$p14=$data['p14'];
$p15=$data['p15'];
$p16=$data['p16'];
$p17=$data['p17'];
$p18=$data['p18'];
$b9=$data['b9'];
$b10=$data['b10'];
$b11=$data['b11'];
$b12=$data['b12'];
$b13=$data['b13'];
$b14=$data['b14'];
$b15=$data['b15'];
$b16=$data['b16'];
$b17=$data['b17'];
$b18=$data['b18'];
$onep=$data['onep'];
$twop=$data['twop'];
$threep=$data['threep'];
$fourp=$data['fourp'];
$fivep=$data['fivep'];
$sixp=$data['sixp'];
$sevenp=$data['sevenp'];
$firstp=$data['firstp'];
$secondp=$data['secondp'];
$thirdp=$data['thirdp'];
$fourthp=$data['fourthp'];
$firstmonth=$data['firstmonth'];
$secondmonth=$data['secondmonth'];
$thirdmonth=$data['thirdmonth'];
$fourthmonth=$data['fourthmonth'];
$nowjk=$data['nowjk'];
$yesdjk=$data['yesdjk'];
$onejk=$data['onejk'];
$twojk=$data['twojk'];
$threejk=$data['threejk'];
$fourjk=$data['fourjk'];
$fivejk=$data['fivejk'];
$sixjk=$data['sixjk'];
$sevenjk=$data['sevenjk'];
$firstjk=$data['firstjk'];
$secondjk=$data['secondjk'];
$thirdjk=$data['thirdjk'];
$fourthjk=$data['fourthjk'];
$firstmonth=$data['firstmonth'];
$secondmonth=$data['secondmonth'];
$thirdmonth=$data['thirdmonth'];
$fourthmonth=$data['fourthmonth'];
$daycountry=$data['daycountry'];
$week=$data['week'];
$month=$data['month'];
$years=$data['years'];
$weekcountry=$data['weekcountry'];
$monthcountry=$data['monthcountry'];
$yearcountry=$data['yearcountry'];


// print_r($data);
// exit;



require(ROOT . 'view/iwocar5/4S_MarketDirector_Main.html');

 ?>
